//
//  NewsScrollViewCell.m
//  必争医疗
//
//  Created by 付正 on 14-11-20.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "NewsScrollViewCell.h"
#import "NewsModel.h"
@implementation NewsScrollViewCell
- (void)dealloc
{
    [_model release];
    [_imagefirst release];
    [_imageSecond release];
    [_imageThird release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.hotScroll = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 375, 200)];
        [_hotScroll setContentSize:CGSizeMake(375 * 3, 200)];
        [_hotScroll setBackgroundColor:[UIColor cyanColor]];
        [_hotScroll setPagingEnabled:YES];
        [_hotScroll setBounces:NO];
        [self.contentView addSubview:_hotScroll];
        [_hotScroll release];

        
        self.imagefirst = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, _hotScroll.frame.size.width, _hotScroll.frame.size.height)];
        [_imagefirst setUserInteractionEnabled:YES];
        self.imageSecond = [[UIImageView alloc] initWithFrame:CGRectMake(_hotScroll.frame.size.width, 0, _hotScroll.frame.size.width, _hotScroll.frame.size.height)];
        [_imageSecond setUserInteractionEnabled:YES];
        self.imageThird = [[UIImageView alloc] initWithFrame:CGRectMake(_hotScroll.frame.size.width * 2, 0, _hotScroll.frame.size.width, _hotScroll.frame.size.height)];
        [_imageThird setUserInteractionEnabled:YES];
      
        [_hotScroll addSubview:_imageSecond];
        [_hotScroll addSubview:_imageThird];
        [_hotScroll addSubview:_imagefirst];
    }
    return self;
}







- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
